### SOUTH AMERICAN EVENTS ###
# 1052000 - (PRU) Per-Ecuador conflicts: the Washington negotiations (by mfigueras)
# 1052001 - (ECU) Per-Ecuador conflicts: the Washington negotiations (by mfigueras)
# 1052002 - (ECU) Per-Ecuador conflicts: the Washington negotiations (by mfigueras)
# 1052003 - (PRU) Per-Ecuador conflicts: the war (by mfigueras)
# 1052004 - (PRU) Per-Ecuador conflicts: the war (by mfigueras)
# 1052005 - (COL) Per-Ecuador conflicts: the colombian reaction (by mfigueras)
# 1052006 - (ECU) Per-Ecuador conflicts: the colombian reaction (by mfigueras)
# 1052007 - (ECU) Per-Ecuador conflicts: the Rio de Janeiro protocol (by mfigueras)
# 1052008 - (ECU) Ecuador: the uprisings of 1944 (by mfigueras)
# 1052010 - (BOL) The bolivian tin (by mfigueras)
# 1052011 - (BOL) The bolivian tin (by mfigueras)
# 1052012 - (BOL) The bolivian tin (by mfigueras)
# 1052013 - (BOL) Bolivia: the peace with Paraguay (by mfigueras)
# 1052014 - (PRU) Per: 1939 uprisings and elections (by mfigueras)
# 1052015 - (PRU) Per: freedom for APRA politicians (by mfigueras)
# 1052016 - (ECU) Help the allies (by mfigueras)
# 1052017 - (ECU) Join the allies (by mfigueras)
# 1052018 - (ECU) The Academy of Artillery (by mfigueras)
# 1052019 - (ECU) Per-Ecuador conflicts: Peruvian victory and peace with Allies (by Steel)
# 
##################################################################################

### PERU-ECUADOR CONFLICTS ###

##########################################################
## The Washington negotiations
##########################################################
event = {
id = 1052000
trigger = { NOT = { alliance = { country = PRU country = ECU } } 
		NOT = { owned = { province = 300 data = -1 } }
		}
random = no
country = PRU

name = "The territorial conflict between Per and Ecuador"
desc = "The territorial dispute between Ecuador and Peru originated in Spanish Colonial times. Upon gaining their independence, Ecuador joined the 'Great Colombia', comprised of the territories of Venezuela, Ecuador, Colombia and Panama. In 1829, the Treaty of Peace and Limits of Guayaquil was signed. Subsequently, in 1830, the Pedemonte-Mosquera Protocol was signed. These treaties established the Maraon-Amazon River as the border between Peru and Ecuador; however, Peru hotly contested these agreements. Between 1936 and 1938, representatives from Ecuador and Peru unsuccessfully attempted to negotiate a treaty in Washington. Consequently, the Peruvians withdrew from the negotiations."

style = 0
date = { day = 1 month = june year = 1936 }
offset = 360
deathdate = { day = 1 month = june year = 1938 }

action_a = { name = "Withdraw from negotiations; Amazonia belongs to Peru"
		 command = { type = dissent value = -3 }
		 command = { type = warentry value = 10 }
		 command = { type = trigger which = 1052001 }
		}
action_b = { name = "Try to reach an agreement peacefully"
		 command = { type = dissent value = 5 }
		 command = { type = removecore which = 300 }
		 command = { type = trigger which = 1052002 }
		 command = { type = sleepevent which = 1052003 }
		 command = { type = sleepevent which = 1052004 }
		 command = { type = sleepevent which = 1052005 }
		 command = { type = sleepevent which = 1052006 }
		}
}

##########################################################
## ECU reaction a
##########################################################
event = {
id = 1052001
random = no
country = ECU

name = "The territorial conflict between Per and Ecuador"
desc = "The territorial dispute between Ecuador and Peru originated in Spanish Colonial times. Upon gaining their independence, Ecuador joined the 'Great Colombia', comprised of the territories of Venezuela, Ecuador, Colombia and Panama. In 1829, the Treaty of Peace and Limits of Guayaquil was signed. Subsequently, in 1830, the Pedemonte-Mosquera Protocol was signed. These treaties established the Maraon-Amazon River as the border between Peru and Ecuador; however, Peru hotly contested these agreements. Between 1936 and 1938, representatives from Ecuador and Peru unsuccessfully attempted to negotiate a treaty in Washington. Consequently, the Peruvians withdrew from the negotiations."

style = 0

action_a = { name = "We shall defend our rights to Amazonia"
		 command = { type = dissent value = 2 }
		 command = { type = warentry value = 10 }
		}
}

##########################################################
## ECU reaction b
##########################################################
event = {
id = 1052002
random = no
country = ECU

name = "The territorial conflict between Per and Ecuador"
desc = "The territorial dispute between Ecuador and Peru originated in Spanish Colonial times. Upon gaining their independence, Ecuador joined the 'Great Colombia', comprised of the territories of Venezuela, Ecuador, Colombia and Panama. In 1829, the Treaty of Peace and Limits of Guayaquil was signed. Subsequently, in 1830, the Pedemonte-Mosquera Protocol was signed. These treaties established the Maraon-Amazon River as the border between Peru and Ecuador; however, Peru hotly contested these agreements. Between 1936 and 1938, representatives from Ecuador and Peru unsuccessfully attempted to negotiate a treaty in Washington."

style = 0

action_a = { name = "Diplomacy has served us once again"
		 command = { type = dissent value = -5 }
		 command = { type = warentry value = -3 }
		 command = { type = influence value = 5 }
		}
}


##########################################################
## The war (ECU not in alliances)
##########################################################
event = {
	id = 1052003
	trigger = { 
		random = 10
		war = { country = ENG country = GER }
		NOT = { 
			war = { country = PRU country = ECU } 
		}
		NOT = { 
			owned = { province = 300 data = -1 } 
		} 
		NOT = { 
			OR = { 
				alliance = { country = ECU country = ENG } # ECU not allied
				alliance = { country = ECU country = GER } # ECU not axis
				alliance = { country = ECU country = SOV } # ECU not commie
			}
		}
		NOT = { 
			event = 1052004 
		}
	} 
	
	random = no
	country = PRU

	name = "The border war between Ecuador and Peru"
	desc = "After several years of small armed conflicts and ambushes between Ecuadorian and Peruvian border posts, Per decided to declare war on Ecuador in order to gain control of the Amazonian lands beyond the Maran river. Ecuador was unprepared to meet the Peruvian invasion. The Ecuadorian president's fear of being left unprotected from his political opponents led him to keep the nation's best fighting forces in Quito. When the much larger Peruvian army of 13,000 men, supported by a battalion of armor, and working together with artillery and air support, moved quickly into the southern coastal province of El Oro, threatening Guayaquil, the fewer than 1,800 Ecuadorian troops in the area lacked sufficient air cover and were able to offer only limited resistance. Peruvian forces also moved into the disputed Amazonian territory without significant opposition."
	style = 0

	date = { day = 1 month = february year = 1939 }
	offset = 60
	deathdate = { day = 1 month = june year = 1943 }

	action_a = { name = "Declare war on Ecuador"
		 command = { type = war which = ECU }
		 command = { type = dissent value = -5 }
		 command = { type = influence value = -1 }
	}
	action_b = { name = "Bide our time; Amazonia will eventually be ours"
		 command = { type = dissent value = 2 }
		 command = { type = influence value = 1 }
	}
	action_c = { name = "Give up our claims to Amazonia"
		 command = { type = dissent value = 6 }
		 command = { type = removecore which = 300 }
		 command = { type = infrastructure  which = -1 value = 1 }
	}
}

##########################################################
## The war (ECU is in alliances)
##########################################################
event = {
	id = 1052004
	trigger = { 
		random = 10
		war = { country = ENG country = GER }
		NOT = 
			{ war = { country = PRU country = ECU } 
		}
		NOT = { 
			owned = { province = 300 data = -1 } 
		} 
		OR = { 
			alliance = { country = ECU country = ENG } # ECU  allied
			alliance = { country = ECU country = GER } # ECU  axis
			alliance = { country = ECU country = SOV } # ECU  commie
		}
		NOT = { 
			event = 1052003 
		}
	} 

	random = no
	country = PRU

	name = "The border war between Ecuador and Peru"
	desc = "After several years of small armed conflicts and ambushes between Ecuadorian and Peruvian border posts, Per decided to declare war on Ecuador in order to gain control of the Amazonian lands beyond the Maran river. Ecuador was unprepared to meet the Peruvian invasion. The Ecuadorian president's fear of being left unprotected from his political opponents led him to keep the nation's best fighting forces in Quito. When the much larger Peruvian army of 13,000 men, supported by a battalion of armor, and working together with artillery and air support, moved quickly into the southern coastal province of El Oro, threatening Guayaquil, the fewer than 1,800 Ecuadorian troops in the area lacked sufficient air cover and were able to offer only limited resistance. Peruvian forces also moved into the disputed Amazonian territory without significant opposition."
	style = 0

	date = { day = 1 month = march year = 1939 }
	offset = 60
	deathdate = { day = 1 month = june year = 1943 }

	action_a = { name = "Bide our time; Amazonia will eventually be ours"
		 command = { type = dissent value = 1 }
		 command = { type = influence value = 2 }
		}
	action_b = { name = "Declare war on Ecuador"
		 command = { type = war which = ECU }
		 command = { type = dissent value = -5 }
		 command = { type = influence value = -2 }
		}
	action_c = { name = "Give up our claims to Amazonia"
		 command = { type = dissent value = 3 }
		 command = { type = removecore which = 300 }
		 command = { type = infrastructure  which = -1 value = 1 }
		}
}


##########################################################
## Possible colombian reaction
##########################################################
event = {
id = 1052005
trigger = { war = { country = ECU country = PRU } } 
random = no
country = COL

name = "Columbia reacts to the Ecuador-Per war"
desc = "The territorial dispute between Ecuador and Peru originated in Spanish Colonial times. Upon independence, Ecuador joined the 'Great Colombia', comprised of the territories of Venezuela, Ecuador, Colombia and Panama. In 1829, the Treaty of Peace and Limits of Guayaquil was signed. Subsequently, in 1830, Pedemonte-Mosquera Protocol was signed. They established the Maraon-Amazon River as the border between Peru and Ecuador; however, Peru contested these agreements. Between 1936 and 1938, representatives from Ecuador and Peru attempted to negotiate a treaty in Washington, D.C. The peruvian representatives withdrew, and in 1941 Per declared the war to Ecuador. The pruvian aggression could be a treat to the colombian interests, as in 1933 the Leticia war had also confronted Colombia with Per because of some Amazonian territories."

style = 0
date = { day = 1 month = june year = 1936 }
offset = 30
deathdate = { day = 1 month = june year = 1943 }

action_a = { name = "This is not our war; remain neutral"
		 command = { type = dissent value = 5 }
		 command = { type = influence value = -1 }
		}
action_b = { name = "Aid the Ecuadorians in their fight against Peru"
		 command = { type = influence value = 1 }
		 command = { type = dissent value = -4 }
		 command = { type = oilpool  value = -600 }
		 command = { type = rubberpool  value = -600 }
		 command = { type = coalpool  value = -600 }
		 command = { type = supplies  value = -400 } #Help sent to Ecuador
		 command = { type = trigger which = 1052006 } #Ecuador receives help
		}
}

##########################################################
## Colombian help
##########################################################
event = {
	id = 1052006
	random = no
	country = ECU

	name = "Colombia sends help to Ecuador"
	desc = "The people of Colombia, aggravated by the Peruvian aggression against Ecuador, sent assistance to Ecuador."
	style = 0

	action_a = { name = "We will use the resources well"
		 command = { type = oilpool  value = 600 }
		 command = { type = rubberpool  value = 600 }
		 command = { type = coalpool  value = 600 }
		 command = { type = supplies  value = 400 }
		 command = { type = infrastructure  which = -1 value = 1 }
	}
}


##########################################################
## The protocol of Rio
##########################################################
event = {
	id = 1052007
	trigger = { 
		war = { country = PRU country = ECU }
		control = { province = 300 data = PRU } 
	}
	random = no
	country = ECU

	name = "The Rio de Janeiro protocol"
	desc = "Ecuador was unprepared to meet the Peruvian invasion. The much larger Peruvian army of 13,000 men, supported by a battalion of armor,  together with artillery and air support moved quickly into the southern  coastal province of El Oro, threatening Guayaquil. The fewer than 1,800  Ecuadorian troops in the area lacked air cover and could offer only limited  resistance. The Ecuadorian president's fear of being left unprotected from his  political opponents led him to keep the nation's best fighting forces in Quito.  Peruvian forces also moved into the disputed Amazonian territory without  significant opposition. After a campaign lasting only three weeks, an armistice  was arranged. The Rio Protocol of February 1942 awarded to Peru some 205,000 square kilometers of previously disputed Amazon territory. The subsequent Protocol of Peace, Friendship, and Boundaries imposed on Ecuador acceptance of Peru's claims in the Amazonian region in return for Peruvian withdrawal from Ecuador's coastal provinces."
	style = 0

	date = { day = 1 month = june year = 1936 }
	offset = 30
	deathdate = { day = 1 month = june year = 1943 }

	action_a = { name = "Sign the Protocols; make peace with Peru"
		 command = { type = peace which = PRU value = 1 }
		 command = { type = removecore  which = 300 }
		 command = { type = secedeprovince which = PRU value = 300 }
		 command = { type = dissent value = 10 }
		 command = { type = trigger which = 1052009 }
	}
	action_b = { name = "We will not give up until Amazonia is ours"
		 command = { type = dissent value = -5 }
		 command = { type = sleepevent which = 1052008 }
	}
}



##########################################################
## uprisings of 1944 in ECU
##########################################################
event = {
id = 1052008
trigger = { event = 1052007 }
random = no
country = ECU

name = "The Ecuadorian uprisings of 1944"
desc = "The Ecuadorian government quickly regretted having become a party to the Rio Protocol. The protocol became the focus of a surge of Ecuadorian national pride and concomitant opposition in a new coalition: the Democratic Alliance. The coalition brought together a wide array of Ecuadorian politicians dedicated to replacing the 'president who had been unable to defend the national honor'. In may 1944, an uprising took place in Guayaquil that soon spread throughout the whole country."

style = 0
date = { day = 1 month = may year = 1944 }
offset = 60
deathdate = { day = 1 month = august year = 1944 }

action_a = { name = "This trouble will spread like wildfire"
		 command = { type = dissent value = 20 }
		}
}

## PRU reaction # triggered by 1052007

event = {
	id = 1052009
	random = no
	country = PRU

	name = "The Rio de Janeiro protocol"
	desc = "Ecuador was unprepared to meet the Peruvian invasion. The much larger Peruvian army of 13,000 men, supported by a battalion of armor, together with artillery and air support moved quickly into the southern coastal province of El Oro, threatening Guayaquil. The fewer than 1,800 Ecuadorian troops in the area lacked air cover and could offer only limited resistance. The Ecuadorian president's fear of being left unprotected from his political opponents led him to keep the nation's best fighting forces in Quito. Peruvian forces also moved into the disputed Amazonian territory without significant opposition. After a campaign lasting only three weeks, an armistice was arranged. The Rio Protocol of February 1942 awarded to Peru some 205,000 square kilometers of previously disputed Amazon territory. The subsequent Protocol of Peace, Friendship, and Boundaries imposed on Ecuador acceptance of Peru's claims in the Amazonian region in return for Peruvian withdrawal from Ecuador's coastal provinces."
	style = 0

	action_a = { name = "We have won a great victory"
		 command = { type = peace which = ENG value = 1 }
		 command = { type = dissent value = -10 }
	}
}

### BOLIVIAN EVENTS ###

##########################################################
## Bolivia and the USA
## steel from province 349 should be increased from 10 to 25 or 30
##########################################################
event = {
id = 1052010
trigger = {	NOT = { OR = { alliance = { country = BOL country = GER } # BOL not axis
				   alliance = { country = BOL country = SOV } # BOL not commie
				} } 
		steel = 5000 } 
random = no
country = BOL

name = "Selling tin to the United States"
desc = "Bolivia was one of the most important producers of tin. In 1942 the government decided to sell the tin to the USA at symbolic prices. In exchange, the Bohan mission helped Bolivia in developing the more remote lands and in improving industry and infrastructures."

style = 0
date = { day = 1 month = march year = 1942 }
offset = 60
deathdate = { day = 1 month = august year = 1944 }

action_a = { name = "Sign the agreement; cheap tin for development"
		 command = { type = dissent value = 4 } # tin industrialists angry
		 command = { type = steelpool value = -5000 } # simulates tin going to USA
		 command = { type = industry  which = -1 value = 5 }
		 command = { type = industry  which = -1 value = 4 }
		 command = { type = infrastructure  which = -1 value = 3 }
		 command = { type = gain_tech  which = -1 }
		 command = { type = trigger which = 322040 }
		}
action_b = { name = "We cannot sell our resources that cheap"
		 command = { type = influence value = -1 }
		 command = { type = dissent value = -1 } # tin industrialists happy
		}
}

##########################################################
## Bolivia and the SOV
## steel from province 349 should be increased from 10 to 25 or 30
##########################################################
event = {
id = 1052011
trigger = {	alliance = { country = BOL country = SOV }  # BOL commie
		steel = 5000 }
random = no
country = BOL

name = "Bolivian tin sales to the Soviets"
desc = "Bolivia was one of the most important producers of tin. The government has decided to sell the tin to the Soviet Union at symbolic prices. In exchange, a soviet mission will help us in developing the more remote lands and in improving industry and infrastructures."

style = 0
date = { day = 1 month = march year = 1942 }
offset = 60
deathdate = { day = 1 month = august year = 1944 }

action_a = { name = "Sign the agreement; cheap tin for development"
		 command = { type = dissent value = 4 } # tin industrialists angry
		 command = { type = steelpool value = -5000 } # simulates tin going to SOV
		 command = { type = industry  which = -1 value = 5 }
		 command = { type = industry  which = -1 value = 4 }
		 command = { type = infrastructure  which = -1 value = 3 }
		 command = { type = gain_tech  which = -1 }
		 command = { type = trigger which = 222038 }
		}
action_b = { name = "We cannot sell our resources that cheap"
		 command = { type = influence value = -1 }
		 command = { type = dissent value = -1 } # tin industrialists happy
		}
}



##########################################################
## Bolivia and GER
## steel from province 349 should be increased from 10 to 25 or 30
##########################################################
event = {
id = 1052012
trigger = {	alliance = { country = BOL country = GER }  # BOL axis
		steel = 5000 }
random = no
country = BOL

name = "Bolivian tin sales to Germany"
desc = "Bolivia was one of the most important producers of tin. The government has decided to sell the tin to the germans at symbolic prices. In exchange, a german mission will help us in developing the more remote lands and in improving industry and infrastructures."

style = 0
date = { day = 1 month = march year = 1942 }
offset = 60
deathdate = { day = 1 month = august year = 1944 }

action_a = { name = "Sign the agreement; cheap tin for development"
		 command = { type = dissent value = 4 } # tin industrialists angry
		 command = { type = steelpool value = -5000 } # simulates tin going to GER
		 command = { type = industry  which = -1 value = 5 }
		 command = { type = industry  which = -1 value = 4 }
		 command = { type = infrastructure  which = -1 value = 3 }
		 command = { type = gain_tech  which = -1 }
		 command = { type = trigger which = 172116 }
		}
action_b = { name = "We cannot sell our resources that cheap"
		 command = { type = influence value = -1 }
		 command = { type = dissent value = -1 } # tin industrialists happy
		}
}

##########################################################
## BOL: The definitive peace with Paraguay
##########################################################
event = {
id = 1052013
trigger = { NOT = { owned = { province = 364 data = -1 } } }
random = no
country = BOL

name = "Bolivian peace with Paraguay"
desc = "Although the Chaco war between Paraguay and Bolivia had unofficially ended years ago, it was only in 1938, after the definitive peace agreements were signed, that peace became official."

style = 0
date = { day = 1 month = march year = 1938 }
offset = 240
deathdate = { day = 1 month = march year = 1939 }

action_a = { name = "Give up our territorial claims"
		 command = { type = removecore which = 364 }
		 command = { type = dissent value = 5 }
		 command = { type = infrastructure which = -1 value = 3 }
		 command = { type = infrastructure which = -1 value = 2 } # sim: definitive peace improves trade
		 command = { type = influence value = 1 }
		}
action_b = { name = "Do not sign peace agreements with Paraguay"
		 command = { type = dissent value = -3 }
		}
}


### PERUVIAN EVENTS ###

##########################################################
## 1939 uprisings
##########################################################
event = {
id = 1052014
trigger = { dissent = 5 }
random = no
country = PRU

name = "The Peruvian uprisings of 1939"
desc = "In 1939, president Benavides hesitated to call an election as he wanted to remain in power until 1942. Rumours of a coup begin to arise. In February, Benavides was out of Lima, and his minister Rodrguez Ramrez seized the Presidential palace and proclaimed himself President of the Republic. His hold on power was short-lived, as the chief of Security, Luis Rizo, immediately killed Ramrez. President Benavides returned that same evening to Lima and took control of the situation. A month later he called the elections he had been fearing. The electoral campaign was furious and all candidates had to fight to obtain votes."

style = 0
date = { day = 1 month = january year = 1939 }
offset = 35
deathdate = { day = 1 month = march year = 1939 }

action_a = { name = "Ramirez has been killed"
		 command = { type = dissent value = 5 }
		 command = { type = sleepminister which = 39005 } ## Rodriguez Ramirez
		 command = { type = sleepleader which = 500005 } ## Rodriguez Ramirez
		}
}

##########################################################
## Free APRA leaders
##########################################################
event = {
id = 1052015
trigger = { headofgovernment = 39011 } ## Prado Ugarteche
random = no
country = PRU

name = "Freedom for the APRA leaders"
desc = "The Alianza Popular Revolucionaria Americana (APRA), was a reformist political party founded in 1924 by Victor Ral Haya de la Torre. The party advocated social reforms, the emancipation of indigenous peoples, improvement of agrarian conditions, and the socialization of some industries. Originally committed to revolutionary change, the party gradually became less radical. After being implicated in acts of political terror, the APRA was outlawed in 1931. While underground, the Apristas engaged in continual gun battles with the military, thus creating an enduring enmity between the two groups. President Prado Ugarteche tried to appear as a magnanimous and impartial man by freeing some APRA leaders, but keeping some others in prison. During the 1945 elections, Prado Ugarteche supported candidate Jos Luis Bustamante, but in order to be elected he demanded the legalization of the APRA."

style = 0
date = { day = 1 month = january year = 1945 }
offset = 20
deathdate = { day = 1 month = february year = 1945 }

action_a = { name = "Prevent legalization of the APRA"
		 command = { type = influence value = -1 }
		 command = { type = dissent value = 5 }
		 command = { type = leader_loyalty which = -1 value = 2 }
		 command = { type = leader_loyalty which = -1 value = 1 }
		 command = { type = leader_loyalty which = -1 value = 1 } ## happy militars
		}
action_b = { name = "We must legalize the APRA"
		 command = { type = alignment which = democratic value = 10 }
		 command = { type = dissent value = -3 }
		 command = { type = leader_loyalty which = -1 value = -2 }
		 command = { type = leader_loyalty which = -1 value = -1 }
		 command = { type = leader_loyalty which = -1 value = -1 } ## angry militars
		}
}


### ECUADORIAN EVENTS ###

##########################################################
## Policy towards the Axis and the USA
##########################################################
event = {
id = 1052016
trigger = {	NOT = { OR = { alliance = { country = ECU country = GER } # ECU not axis
				   alliance = { country = ECU country = SOV } # ECU not commie
				} } }
random = no
country = ECU

name = "The Ecuadorian policy towards the Axis and the U.S.A."
desc = "In 1942, the Ecuadorian government broke off all relations with Japan, Italy and Germany. At the same time, the U.S.A. were given the opportunity to establish military bases on the Galpagos islands and in the peninsula Santa Elena. These bases were specially created to guard the Panam canal. The German School of Quito was closed and some German citizens were handed over U.S. intelligence officers."

style = 0
date = { day = 1 month = february year = 1942 }
offset = 90
deathdate = { day = 1 month = june year = 1942 }

action_a = { name = "Help the Allied effort"
		 command = { type = access which = USA }
		 command = { type = alignment which = democratic value = 10 }
		 command = { type = warentry value = 5 }
		}
action_b = { name = "Maintain our neutrality"
		 command = { type = warentry value = -3 }
		 command = { type = end_access which = USA } # just in case...
		 command = { type = sleepevent which = 1052017 }
		}
}


##########################################################
## Join the allies!!
##########################################################
event = {
id = 1052017
trigger = {	
	exists = ENG
	NOT = { 
		OR = { 
			alliance = { country = ECU country = GER } # ECU not axis
			alliance = { country = ECU country = SOV } # ECU not commie
			alliance = { country = ECU country = ENG } # ECU not allied
			} 
		} 
	}
random = no
country = ECU

name = "Ecuador joins the Allies"
desc = "In 1945, the Ecuadorian government decided to formally join the Allies and declare war on the Axis nations. Since the war was nearly over, it was mainly a diplomatic action to show support for the winning cause. It was, however, an interesting move for Ecuador: the official declaration of war allowed the government to expropriate the property of German, Italian, and Japanese citizens. This property was later sold back to Ecuadorians, thus earning some money for public affairs."
style = 0

trigger = {
		exists = GER
		exists = ENG
		exists = SOV
	}

date = { day = 2 month = january year = 1945 }
offset = 90
deathdate = { day = 1 month = april year = 1945 }

action_a = { name = "Join the Allies; expropriate Axis property"
		 command = { type = alliance which = ENG }
		 command = { type = alignment which = democratic value = 50 }
		 command = { type = industry which = -1 value = -1 } # expropiations...
		 command = { type = supplies value = 650 } # ... but sold goods
		}
action_b = { name = "Maintain our neutrality"
		 command = { type = dissent value = 2 }
		 command = { type = end_access which = USA } # just in case...
		 command = { type = steal_tech which = GER } # german citizens help ECU
		 command = { type = steal_tech which = GER } # german citizens help ECU
		}
action_c = { name = "Join the Comintern"
		 command = { type = dissent value = 3 }
		 command = { type = alliance which = SOV }
		 command = { type = alignment which = communist value = 50 }
		 command = { type = industry which = -1 value = -1 } # expropiations...
		 command = { type = supplies value = 650 } # ... but sold goods
		 command = { type = end_access which = USA } # just in case...
		}
}

##########################################################
# 1052018 - (ECU) The Academy of Artillery (by mfigueras)
##########################################################
event = {
id = 1052018
random = no
country = ECU

trigger = {
	random = 40
	}

name = "The Ecuadorian Academy of Artillery"
desc = "In 1936, the Ecuadorian government, headed by Federico Pez, founded the Academy of Artillery. The Academy was preceded by an Italian military mission in 1922, which aided the development of a modern artillery corps for the Ecuadorian army. The fruits of the Academy were rapidly realized when the first generation of artillery officers entered into service in 1940."

style = 0
date = { day = 1 month = march year = 1936 }
offset = 15
deathdate = { day = 1 month = december year = 1936 }

action_a = { name = "Create the Academy and begin training officers"
		 command = { type = gain_tech which = 14003 }
		 command = { type = manpowerpool value = -5 } # officers go study
		 command = { type = supplies value = -500 } # for the Academy
		}
action_b = { name = "Invest our resources in infrastructure instead"
		 command = { type = infrastructure which = -1 value = 2 }
		 command = { type = dissent value = -2 }
		 command = { type = supplies value = -200 } # for the workers
		 command = { type = leader_loyalty which = -1 value = -1 }
		 command = { type = leader_loyalty which = -1 value = -1 }
		}
action_c = { name = "We can not afford the Academy"
		 command = { type = leader_loyalty which = -1 value = -2 }
		 command = { type = leader_loyalty which = -1 value = -1 }
		}
}

##########################################################
# 1052019 - (ECU) Army modernization (by mfigueras)
##########################################################
event = {
id = 1052019
trigger = { NOT = { owned = { province = 300 data = -1 } } }
random = no
country = ECU

name = "Army modernization"
desc = "After the loss of the amazonian lands in the war with Per, 
the Militar Staff recognized that the greatest mistakes in the war were the 
poor state of communications as well as the great inferiority in aviation 
capabilities. For this reason in 1942 the Military School for Telecommunications 
was created, aimed at providing technical personnel to the army. In the 
same year, a purchase of military planes for the Aviation School was 
approved, and soon arrived at Ecuador from the USA three Ryan PT-22, six 
Curtiss-Wrigth CW-22 Falcon, six Fairchild PT-19 Cornell and three AT-6 
Texan."

style = 0
date = { day = 1 month = march year = 1942 }
offset = 30
deathdate = { day = 1 month = december year = 1943 }

action_a = { name = "Yes, we need a modernization of the army"
		 command = { type = gain_tech which = 3007 }
		 command = { type = manpowerpool value = -12 } # officers go study
		 command = { type = supplies value = -550 } # for the Academy and purchases
		 command = { type = steelpool value = -250 } # for the Academy and purchases
		 command = { type = add_division which = fighter }
		}
action_b = { name = "No, we have had enough of war"
		 command = { type = infrastructure which = -1 value = 3 }
		 command = { type = industry which = -1 value = 2 }
		 command = { type = steelpool value = -200 }
		 command = { type = leader_loyalty which = -1 value = -1 }
		 command = { type = leader_loyalty which = -1 value = -1 }
		}
}

##########################################################
# 1052020 (BOL) - Navy (fluvial) modernization (by mfigueras)
##########################################################
event = {
id = 1052020
trigger = { random = 60 }
random = no
country = BOL

name = "The Bolivian Navy"
desc = "The Bolivian Army was also in charge of the fluvial security. In 1939, 
in order to improve the quality of the naval service and to recruit qualified 
personnel, the 'Navy' became a more independent corps and a Navigation 
School was established."

style = 0
date = { day = 1 month = march year = 1939 }
offset = 30
deathdate = { day = 1 month = december year = 1939 }

action_a = { name = "Yes, we need a good fluvial army"
		 command = { type = infrastructure which = -1 value = 8 }
		 command = { type = industry which = -3 value = -1 }
		 command = { type = infrastructure which = -1 value = 5 }
		 command = { type = industry which = -3 value = -1 }
		 command = { type = infrastructure which = -1 value = 5 } # better fluvial comm
		 command = { type = manpowerpool value = -10 } # officers go study
		 command = { type = supplies value = -500 } # for the works
		 command = { type = add_division which = infantry value = engineer }
		}
action_b = { name = "A navy in the middle of the Andes ?"
		 command = { type = industry which = -1 value = 2 }
		 command = { type = leader_loyalty which = -1 value = -1 }
		 command = { type = leader_loyalty which = -1 value = -1 }
		}
}

##########################################################
# 1052021 (PRU) - Aviation modernization (by mfigueras)  
##########################################################
event = {
id = 1052021
random = no
country = PRU

name = "Aviation modernization"
desc = "In 1936 the first wing of combat fighters is created, with its 
base at the city of Chiclayo and becames the main wing of combat, 
with planes Caproni Ca. 111 'Pancho' and Potez 39A-2, and later with 
Caproni Ca. 114, Ca. 135, Ca. 310 and finally with Douglas-Northrop 8A-3P 
and North American N.A. 50 'Torito', all of which took place in the war with 
Ecuador of 1941."

style = 0
date = { day = 1 month = march year = 1936 }
offset = 30
deathdate = { day = 1 month = june year = 1936 }

action_a = { name = "Yes, we need a better air force"
		 command = { type = supplies value = -500 }
		 command = { type = steelpool value = -200 }
		 command = { type = add_division which = fighter }
		}
action_b = { name = "We must invest in infrastructure, not in war"
		 command = { type = infrastructure which = -1 value = 10 }
		 command = { type = industry which = -1 value = 2 }
		 command = { type = steelpool value = -200 }
		 command = { type = coalpool value = -200 }
		 command = { type = oilpool value = -100 }
		 command = { type = leader_loyalty which = -1 value = -1 }
		 command = { type = leader_loyalty which = -1 value = -1 }
		}
action_c = { name = "We can't afford it"
		 command = { type = leader_loyalty which = -1 value = -2 }
		 command = { type = leader_loyalty which = -1 value = -1 }
		}
}

##########################################################
## 1052022 (PRU) - Ministery of Aeronautics (by mfigueras) 
##########################################################
event = {
id = 1052022
trigger = { random = 60 }
random = no
country = PRU

name = "Ministery of Aeronautics"
desc = "In october 1941 the peruvian government created a new Ministry of 
Aeronautics, showing its great concern on the possession of a modern and 
well-equipped air force."

style = 0
date = { day = 1 month = november year = 1941 }
offset = 30
deathdate = { day = 1 month = june year = 1942 }

action_a = { name = "Yes, we need a better air force"
		 command = { type = supplies value = -500 }
		 command = { type = manpowerpool value = -10 } # officers go to Ministery
		 command = { type = chiefofair which = 39076 } # Melgar Conde
		 command = { type = leader_loyalty which = 500026 value = 1 } # Melgar Conde
		 command = { type = gain_tech which = 10503 }
		}
action_b = { name = "We can't afford it"
		 command = { type = industry which = -1 value = 2 }
		 command = { type = leader_loyalty which = 500026 value = -1 }
		 command = { type = leader_loyalty which = -1 value = -1 }
		 command = { type = sleepminister which = 39076 }
		}
}
#########################################
# (CHL)Protest agains soviet attack on Finland (by Ghost_dk)
#########################################

event = {
	id = 1052023
	random = no
	country = CHL

	trigger = {
		random = 20
		event = 2621
		war = { country = SOV country = FIN }
		NOT = {
			event = 2628
			alliance = { country = CHL country = SOV }
			war = { country = CHL country = FIN }
			}
		}
	name = "Protest against Soviet attack on Finland"
	desc = "Following the Soviet attack on Finland the Chilenian government decided that such agression could not be allowed to go unnoticed. Therefore a letter of protest was delivered to the Soviet government to show the disapproval of such actions."
	style = 0

	date = { day = 30 month = august year = 1939 }
	offset = 2 
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		name = "Protest"
		command = { type = trigger which = 222052 }
		command = { type = influence value = -1 }
		command = { type = alignment which = democratic value = 5 }
		}
	action_b = {
		name = "Condone attack"
		command = { type = sleepevent which = 222051 }
		command = { type = influence value = -2 }
		command = { type = alignment which = communist value = 5 } 
		}
}
#######################################
# (BOL)Protest Soviet attack on Finland (by Ghost_dk)
#######################################

event = {
	id = 1052024
	random = no
	country = BOL

	trigger = {
		random = 20
		event = 2621
		war = { country = SOV country = FIN }
		NOT = {
			event = 2628
			alliance = { country = BOL country = SOV }
			war = { country = BOL country = FIN }
			}
		}
	name = "Protest against Soviet attack on Finland"
	desc = "Following the Soviet attack on Finland the Bolivian government decided that such agression could not be allowed to go unnoticed. Therefore a letter of protest was delivered to the Soviet government to show the disapproval of such actions."
	style = 0

	date = { day = 30 month = august year = 1939 }
	offset = 2 
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		name = "Protest"
		command = { type = trigger which = 222051 }
		command = { type = influence value = -1 }
		command = { type = alignment which = democratic value = 5 }
		}
	action_b = {
		name = "Condone attack"
		command = { type = sleepevent which = 222051 }
		command = { type = influence value = -2 }
		command = { type = alignment which = communist value = 5 } 
		}
}
#######################################
# (BOL)Promise aid to Finland (by Ghost_dk)
#######################################

event = {
	id = 1052025
	random = no
	country = BOL

	# triggered by SOV 222041

	name = "Promise aid to Finland"
	desc = "Following the expulsion of the USSR from the league of nations and the request by the same organization for aid to the finnish war struggle we have to decide if we want to follow up on this request and promise support to the finnish people."
	style = 0

	action_a = {
		name = "Promise aid"
		command = { type = influence value = 2 }
		command = { type = trigger which = 1002069 }
		command = { type = alignment which = democratic value = 5 }
		}
	action_b = {
		name = "We cant help"
		command = { type = influence value = -1 }
		command = { type = sleepevent which = 1002069 }
		command = { type = alignment which = communist value = 5 }
		}
}
#########################################
# (PAR)Protest agains soviet attack on Finland (by Ghost_dk)
#########################################

event = {
	id = 1052026
	random = no
	country = PAR

	trigger = {
		random = 20
		event = 2621
		war = { country = SOV country = FIN }
		NOT = {
			event = 2628
			alliance = { country = PAR country = SOV }
			war = { country = PAR country = FIN }
			}
		}
	name = "Protest against Soviet attack on Finland"
	desc = "Following the Soviet attack on Finland the Paraguay government decided that such agression could not be allowed to go unnoticed. Therefore a letter of protest was delivered to the Soviet government to show the disapproval of such actions."
	style = 0

	date = { day = 30 month = august year = 1939 }
	offset = 2 
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		name = "Protest"
		command = { type = trigger which = 222053 }
		command = { type = influence value = -1 }
		command = { type = alignment which = democratic value = 5 }
		}
	action_b = {
		name = "Condone attack"
		command = { type = sleepevent which = 222051 }
		command = { type = influence value = -2 }
		command = { type = alignment which = communist value = 5 } 
		}
}
#########################################
# (PRU)Protest agains soviet attack on Finland (by Ghost_dk)
#########################################

event = {
	id = 1052027
	random = no
	country = PRU

	trigger = {
		random = 20
		event = 2621
		war = { country = SOV country = FIN }
		NOT = {
			event = 2628
			alliance = { country = PRU country = SOV }
			war = { country = PRU country = FIN }
			}
		}
	name = "Protest against Soviet attack on Finland"
	desc = "Following the Soviet attack on Finland the Peruvian government decided that such agression could not be allowed to go unnoticed. Therefore a letter of protest was delivered to the Soviet government to show the disapproval of such actions."
	style = 0

	date = { day = 30 month = august year = 1939 }
	offset = 2 
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		name = "Protest"
		command = { type = trigger which = 222054 }
		command = { type = influence value = -1 }
		command = { type = alignment which = democratic value = 5 }
		}
	action_b = {
		name = "Condone attack"
		command = { type = sleepevent which = 222051 }
		command = { type = influence value = -2 }
		command = { type = alignment which = communist value = 5 } 
		}
}
#######################################
# (ARG)Promise aid to Finland (by Ghost_dk)
#######################################

event = {
	id = 1052028
	random = no
	country = ARG

	# triggered by SOV 222041

	name = "Promise aid to Finland"
	desc = "Following the expulsion of the USSR from the league of nations and the request by the same organization for aid to the finnish war struggle we have to decide if we want to follow up on this request and promise support to the finnish people."
	style = 0

	action_a = {
		name = "Promise aid"
		command = { type = influence value = 2 }
		command = { type = trigger which = 1002066 }
		command = { type = alignment which = democratic value = 5 }
		}
	action_b = {
		name = "We wont help"
		command = { type = influence value = -1 }
		command = { type = sleepevent which = 1002066 }
		command = { type = alignment which = communist value = 5 }
		}
}
#######################################
# (ARG)send grain to Finland (by Ghost_dk)
#######################################

event = {
	id = 1052029
	random = no
	country = ARG

	trigger = {
		random = 20
		event = 1052028
		war = { country = FIN country = SOV }
		NOT  = {
			event = 2628
			alliance = { country = SOV country = ARG }
			}
		}
	name = "Grain for Finland"
	desc = "After having promised their support for Finland against the attacks from USSR the government of argentina has decided that now may be the time to stand up to their word. Maybe we should offer Finland 50000 sacks of grain and allow them to pay whenever they are able to."
	style = 0

	date = { day = 30 month = august year = 1939 }
	offset = 5
	deathdate = { day = 30 month = december year = 1947 } 

	action_a = {
		name = "Send Grain"
		command = { type = supplies value = -200 }
		command = { type = trigger which = 1002080 }
		command = { type = alignment which = democratic value = 10 }
		}
	action_b = {
		name = "We need it ourself"
		command = { type = influence value = -1 }
		command = { type = sleepevent which = 1002080 }
		command = { type = alignment which = communist value = 5 }
		}
}
#########################################
# (ECU)promise to aid Finland (by Ghost_dk)
#########################################

event = {
	id = 1052030
	random = no
	country = ECU

	# triggered by SOV 222041

	name = "Promise aid to Finland"
	desc = "Following the expulsion of the USSR from the league of nations and the request by the same organization for aid to the finnish war struggle we have to decide if we want to follow up on this request and promise support to the finnish people."
	style = 0

	action_a = {
		name = "Promise aid"
		command = { type = influence value = 2 }
		command = { type = trigger which = 1002067 }
		command = { type = alignment which = democratic value = 5 }
		}
	action_b = {
		name = "We cant help"
		command = { type = influence value = -1 }
		command = { type = sleepevent which = 1002067 }
		command = { type = alignment which = communist value = 5 }
		}
}
#########################################
# (VEN)promise to aid Finland (by Ghost_dk)
#########################################

event = {
	id = 1052031
	random = no
	country = VEN

	# triggered by SOV 222041

	name = "Promise aid to Finland"
	desc = "Following the expulsion of the USSR from the league of nations and the request by the same organization for aid to the finnish war struggle we have to decide if we want to follow up on this request and promise support to the finnish people."
	style = 0

	action_a = {
		name = "Promise aid"
		command = { type = influence value = 2 }
		command = { type = trigger which = 1002070 }
		command = { type = alignment which = democratic value = 5 }
		}
	action_b = {
		name = "We cant help"
		command = { type = influence value = -1 }
		command = { type = sleepevent which = 1002067 }
		command = { type = alignment which = communist value = 5 }
		}
}
#########################################
# (URU)promise to aid Finland (by Ghost_dk)
#########################################

event = {
	id = 1052032
	random = no
	country = URU

	# triggered by SOV 222041

	name = "Promise aid to Finland"
	desc = "Following the expulsion of the USSR from the league of nations and the request by the same organization for aid to the finnish war struggle we have to decide if we want to follow up on this request and promise support to the finnish people."
	style = 0

	action_a = {
		name = "Promise aid"
		command = { type = influence value = 2 }
		command = { type = alignment which = democratic value = 5 }
		command = { type = trigger which = 1002118 }
		}
	action_b = {
		name = "We cant help"
		command = { type = influence value = -1 }
		command = { type = alignment which = communist value = 5 }
		command = { type = sleepevent which = 1002118 }
		}
}
#######################################
# (BRA)send coffee to Finland (by Ghost_dk)
#######################################

event = {
	id = 1052033
	random = no
	country = BRA

	trigger = {
		event = 2621
		event = 222041
		war = { country = SOV country = FIN }
		NOT = {
			event = 2628
			alliance = { country = SOV country = BRA }
			}
		}
	name = "Coffe for Finland"
	desc = "Despite that Brazil did not pick up on the request for aid to Finland from the League of nations, brazialian coffee workers have gathered 60000 sacks of coffe that they want to send to Finland. This may anger USSR but maybe we should do it anyway."
	style = 0

	date = { day = 30 month = august year = 1939 }
	offset = 5
	deathdate = { day = 30 month = december year = 1947 } 

	action_a = {
		name = "Send coffee"
		command = { type = supplies value = -200 }
		command = { type = influence value = 1 }
		command = { type = alignment which = democratic value = 10 }
		command = { type = trigger which = 1002083 }
		}
	action_b = { 
		name = "Stop shipment"
		command = { type = influence value = -1 }
		command = { type = sleepevent which = 1002083 }
		command = { type = alignment which = communist value = 10 }
		}
}

################# VENEZUELA ##################

##########################################################################
#  1052034 - (VEN) New Constitution (by Generalisimo)
#########################################################################

event = { 
id = 1052034 
random = no 
country = VEN

trigger = {
	NOT = {
		ispuppet = VEN
		}
	}

name = "New Constitution" 
desc = "A new constitution provided that the president's term should be limited to five years, with no eligibility for reelection." 
style = 0 

date = { day = 16 month = july year = 1936 } 

action_a = { 
	name = "Ok" 
	command = { type = influence value = 2 }
	} 
}

##########################################################################
#  1052035 - (VEN) Elections for 1/3 of the Congress seats (by Generalisimo)
#########################################################################

event = { 
id = 1052035
random = no 
country = VEN

trigger = {
	NOT = {
		ispuppet = VEN
		}
	}

name = "Elections for 1/3 of the Congress seats" 
desc = "Elections were held for about one-third of the seats in Congress. These turned out to be a decisive victory for the Left parties. This is totally against the current government." 
style = 0 

date = { day = 15 month = january year = 1937 } 

action_a = { 
	name = "Ok" 
	command = { type = dissent value = 2 }
	command = { type = alignment which = communist value = 15 }
	} 
}

##########################################################################
#  1052036 - (VEN) Prosecution of the 'communists' (by Generalisimo)
#########################################################################

event = { 
id = 1052036
random = no 
country = VEN

trigger = {
	NOT = {
		ispuppet = VEN
		}
	event = 1052035 
	}

name = "Prosecution of the 'communists'" 
desc = "The Elections were not what the government expected. These turned out to be a decisive victory for the Left parties, whereupon the government arrested many of the leaders of the Left (including newly elected congressmen) on the charge of Communism. Most of these leaders were exiled, and most of the leftist organizations (including the Federation of Students) were dissolved. The president then undertook to suppress the Left, but at the same time embarked on a far-reaching program of social reform designed to meet the needs and demands of the lower classes and to check the spread of support for leftist movements." 
style = 0 

date = { day = 4 month = february year = 1937 } 

action_a = { 
	name = "Start the supression of the Left" 
	command = { type = dissent value = -5 }
	command = { type = alignment which = communist value = -100 }
	command = { type = influence value = -5 } # looses democratic respect
	} 
action_b = { 
	name = "It is not necessary" 
	command = { type = dissent value = 5 } # the oposition grows
	command = { type = alignment which = communist value = 10 }
	command = { type = influence value = 5 } # gains democratic reputation
	} 
}

### 1052037 - RESERVED VENEZUELAN OIL

